package net.pimpas.report.processor.tree.node;

public abstract class AbstractNode implements Node {
	
	private String propertyName;
	private Node parent;
	private Class<?> propertyClass;
	
	public AbstractNode(String propertyName, Class<?> propertyClass) {
		this.setPropertyName(propertyName);
		this.setPropertyClass(propertyClass);
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public Node getParent() {
		return parent;
	}

	public void setParent(Node parent) {
		this.parent = parent;
	}
	
	public Class<?> getPropertyClass() {
		return propertyClass;
	}

	public void setPropertyClass(Class<?> propertyClass) {
		this.propertyClass = propertyClass;
	}
}